package com.qf.md.service.impl;

import com.qf.md.domain.MdUnitMeasure;
import com.qf.md.mapper.MdUnitMapper;
import com.qf.md.service.IMdUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author GUOFUCHENG
 * @date 2025/8/28
 * @desc
 */
@Service
public class IMdUnitServiceImpl implements IMdUnitService {

    @Autowired
    private MdUnitMapper mdUnitMapper;

    @Override
    public List<MdUnitMeasure> list(MdUnitMeasure MdUnitMeasure) {
        return mdUnitMapper.list(MdUnitMeasure);
    }

    @Override
    public List<MdUnitMeasure> selectPrimaryUnitList(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMapper.selectPrimaryUnitList(mdUnitMeasure);
    }

    @Override
    public boolean checkUnitNameUnique(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMapper.checkUnitNameUnique(mdUnitMeasure);
    }

    @Override
    public boolean checkUnitCodeUnique(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMapper.checkUnitCodeUnique(mdUnitMeasure);
    }



    @Override
    public int insertMdUnitMeasure(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMapper.insertMdUnitMeasure(mdUnitMeasure);
    }

}
